package com.Service;

import com.pojo.Order;
import com.pojo.OrderVO;

import java.util.List;
import java.util.Map;

public interface OrderService {
    List<OrderVO> findOrdersByUserId(Long id);
    List<Order> findAll();
    void createOrder(Long id, Map<Long, Integer> productQuantityMap);
    List<Order> findByUserId(Long userId);
    Object findById(Long id);

    void updateStatus(Long orderId, String status);

    void delete(Long id);
    void submit(Order order);
}
